const { dialog } = require('electron');
exports.getMenu = function(win){
  return [
    [
      {
        label: "关于",
        click: function () {
          dialog.showMessageBox({
            type: "info",
            title: 'My App',
            message: `版本：V1.0.0`,
          });
        },
      },
      {
        label: '退出', click: function () {
          if (win) {
            win.close();
          }
        }
      },
    ]
  ]
}